import { defineUniPages } from "@uni-helper/vite-plugin-uni-pages";

export default defineUniPages({
    globalStyle: {
        navigationStyle: "default",
        navigationBarTitleText: "unibest",
        navigationBarBackgroundColor: "#ffffff",
        navigationBarTextStyle: "black",
        backgroundColor: "#FFFFFF",
    },
    easycom: {
        autoscan: true,
        custom: {
            "^wd-(.*)": "wot-design-uni/components/wd-$1/wd-$1.vue",
            "^(?!z-paging-refresh|z-paging-load-more)z-paging(.*)": "z-paging/components/z-paging$1/z-paging$1.vue",
        },
    },
    tabBar: {
        color: "#000000",
        selectedColor: "#2E79FB",
        backgroundColor: "#ffffff",
        borderStyle: "black",
        height: "50px",
        fontSize: "14px",
        iconWidth: "24px",
        spacing: "3px",

        list: [
            {
                iconPath: "static/tabbar/home.png",
                selectedIconPath: "static/tabbar/home_color.png",
                pagePath: "pages/index/index",
                text: "首页",
            },
            {
                iconPath: "static/tabbar/spot.png",
                selectedIconPath: "static/tabbar/spot_color.png",
                pagePath: "pages/scenicSpot/index",
                text: "景点",
            },
            // {
            //     iconPath: "static/tabbar/strategy.png",
            //     selectedIconPath: "static/tabbar/strategy_color.png",
            //     pagePath: "pages/strategy/index",
            //     text: "攻略",
            // },
            // {
            //     iconPath: "static/tabbar/service.png",
            //     selectedIconPath: "static/tabbar/service_color.png",
            //     pagePath: "pages/service/index",
            //     text: "服务",
            // },
            {
                iconPath: "static/tabbar/user.png",
                selectedIconPath: "static/tabbar/user_color.png",
                pagePath: "pages/user/index",
                text: "我的",
            },
        ],
    },
});
